<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  更新
@author WeiXiaoJin
@since 2020-01-19 20:38:09
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">dfsGroupName </label>
	<div class="col-md-9">
				<input class="form-control" id="dfsGroupName" type="text" th:value="${ bean.dfsGroupName}" name="dfsGroupName" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">downloadNum </label>
	<div class="col-md-9">
				<input class="form-control" id="downloadNum" type="text" th:value="${ bean.downloadNum}" name="downloadNum" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">downloadPwd </label>
	<div class="col-md-9">
				<input class="form-control" id="downloadPwd" type="text" th:value="${ bean.downloadPwd}" name="downloadPwd" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">expirationDate </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" name="expirationDate" 
				   th:value="${ #dates.format(bean.expirationDate, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件扩展名 </label>
	<div class="col-md-9">
				<input class="form-control" id="fileExt" type="text" th:value="${ bean.fileExt}" name="fileExt" placeholder="文件扩展名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件标识 </label>
	<div class="col-md-9">
				<input class="form-control" id="fileFlag" type="text" th:value="${ bean.fileFlag}" name="fileFlag" placeholder="文件标识">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="fileName" type="text" th:value="${ bean.fileName}" name="fileName" placeholder="文件名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件长度 </label>
	<div class="col-md-9">
				<input class="form-control" id="fileSize" type="text" th:value="${ bean.fileSize}" name="fileSize" placeholder="文件长度">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">地址链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="fileUrl" type="text" th:value="${ bean.fileUrl}" name="fileUrl" placeholder="地址链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件源 </label>
	<div class="col-md-9">
				<input class="form-control" id="filesource" type="text" th:value="${ bean.filesource}" name="filesource" placeholder="文件源">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否公开 </label>
	<div class="col-md-9">
				<input class="form-control" id="isPublic" type="text" th:value="${ bean.isPublic}" name="isPublic" placeholder="是否公开">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">保存类型 </label>
	<div class="col-md-9">
				<input class="form-control" id="saveType" type="text" th:value="${ bean.saveType}" name="saveType" placeholder="保存类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">阿里云链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="urlAlioss" type="text" th:value="${ bean.urlAlioss}" name="urlAlioss" placeholder="阿里云链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">本地磁盘链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="urlDisk" type="text" th:value="${ bean.urlDisk}" name="urlDisk" placeholder="本地磁盘链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fastdfs链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="urlFastdfs" type="text" th:value="${ bean.urlFastdfs}" name="urlFastdfs" placeholder="fastdfs链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlPaxossurlre </label>
	<div class="col-md-9">
				<input class="form-control" id="urlPaxossurlre" type="text" th:value="${ bean.urlPaxossurlre}" name="urlPaxossurlre" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">七牛链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="urlQiniu" type="text" th:value="${ bean.urlQiniu}" name="urlQiniu" placeholder="七牛链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlbfs </label>
	<div class="col-md-9">
				<input class="form-control" id="urlbfs" type="text" th:value="${ bean.urlbfs}" name="urlbfs" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlmongodb </label>
	<div class="col-md-9">
				<input class="form-control" id="urlmongodb" type="text" th:value="${ bean.urlmongodb}" name="urlmongodb" placeholder="">
			</div>
</div>
																										</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
dfsGroupName: {required:true}
,downloadNum: {required:true}
,downloadPwd: {required:true}
,expirationDate: {required:true}
,fileExt: {required:true}
,fileFlag: {required:true}
,fileName: {required:true}
,fileSize: {required:true}
,fileUrl: {required:true}
,filesource: {required:true}
,isPublic: {required:true}
,saveType: {required:true}
,urlAlioss: {required:true}
,urlDisk: {required:true}
,urlFastdfs: {required:true}
,urlPaxossurlre: {required:true}
,urlQiniu: {required:true}
,urlbfs: {required:true}
,urlmongodb: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"base/storage/storageFileHistory/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
